<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java"  pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="java.util.HashMap"%>
<%
	String contextPath = request.getContextPath();
%>
<%@taglib uri="/jstl/cout" prefix="c" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%
	List claimBasicList = (List)request.getAttribute("CLAIMBASIC");
%>
<jsp:include page="${contextPath}/common/jsp_head_new.jsp" />
<title>索赔基本参数设定</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
  <div class="navigation"><img src="<%=contextPath%>/img/nav.gif" />&nbsp;当前位置： 售后服务管理&gt;索赔基本数据&gt;索赔基本参数设定</div>


  <form name='fm' id='fm'>


  <table class="table_query">

       <tr>            
        <td class="table_query_2Col_label_5Letter">经销商代码：</td>            
        <td>
		<textarea rows="2" cols="53" id="dealerCode" name="dealerCode"></textarea>
		     <input name="button1" type="button" class="mini_btn" style="cursor: pointer;"  onclick="showOrgDealer('dealerCode','','true','','true','','10771002');" value="..." />        
		     <input name="button2" type="button" class="normal_btn" onclick="clr();" value="清除"/>
        </td>   
       </tr>
       <tr>            
        <td class="table_query_2Col_label_5Letter">经销商名称：</td>
        <td><input type="text" name="DEALER_NAME" id="DEALER_NAME" datatype="1,is_digit_letter_cn,30" class="middle_txt" value=""/></td>     
       </tr>       
	   <tr>
             <td colspan="4" align="center">
             	<input id="queryBtn" class="normal_btn" type="button" name="button1" value="查询"  onclick="__extQuery__(1)"/>
				<input class="normal_btn" type="button" name="button1" value="新增"  onclick="add();"/>
			</td>
       </tr>
 	</table>
<div id="loader" style='position:absolute;z-index:200;background:#FFCC00;padding:1px;top:4px;display:none;display: none;'></div>
</form>
  <!--分页 begin -->
	<jsp:include page="${contextPath}/queryPage/orderHidden.html" />
	<jsp:include page="${contextPath}/queryPage/pageDiv.html" />
  <!--分页 end -->
<script type="text/javascript" >
var myPage;
	var url = "<%=request.getContextPath()%>/claim/basicData/ClaimBasicParamsMain/claimBasicParmsQuery.json?COMMAND=1";
	var title = null;
	
	var columns = [
				{header: "经销商代码",sortable: false,dataIndex: 'DEALER_CODE',align:'center'},
				{header: "经销商名称",sortable: false,dataIndex: 'DEALER_SHORTNAME',align:'center'},				
       <% for(int i=0;i<claimBasicList.size();i++){ 
    	 HashMap temp = (HashMap)claimBasicList.get(i);
		  %>
		  	{header: "<%=temp.get("CODE_DESC")%>",sortable: false,dataIndex: "<%=temp.get("CODE_ID")%>",align:'center'},
		  <%
   			 }	%>	
				{header: "操作",sortable: false,dataIndex: 'DEALER_CODE',renderer:myLink ,align:'center'}
		      ];

//设置超链接  begin      
	
	//修改的超链接设置
	function myLink(value,meta,record){
	    return String.format(
         "<a href=\"<%=contextPath%>/claim/basicData/ClaimBasicParamsMain/claimBasicParmsUpdateInit.do?DEALER_CODE="
			+ value + "\">[修改]</a>");
	}
	
//设置超链接 end
  //新增
  function add(){
    fm.action ="<%=contextPath%>/claim/basicData/ClaimBasicParamsMain/claimBasicParmsAddInit.do";
    fm.submit();    
  }
//清除方法
 function clr() {
	document.getElementById('DEALER_NAME').value = '';
	document.getElementById('dealerCode').value = '';
  }
</script>  
  </body>
</html>
